package com.itheima.health.service;

import com.itheima.health.common.ResultPageData;
import com.itheima.health.entity.TCheckgroup;
import com.itheima.health.entity.TSetmeal;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.health.utils.QueryPageBean;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cpanda
 * @since 2024-01-26
 */
public interface ITSetmealService extends IService<TSetmeal> {

    ResultPageData findPage(QueryPageBean dto);

    List<TCheckgroup> checkgroupfindAll();

    String upload(MultipartFile imgFile) throws IOException;

    void addSetmeal(TSetmeal setmeal, List<Integer> checkgroupIds);

    TSetmeal setmealById(Integer id);

    List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);

    void updateSetmeal(TSetmeal setmeal, List<Integer> checkgroupIds);

    void deleteSetmeal(Integer id);
}
